package cn.edu.ahstu.acm.util;

import com.sangupta.murmur.Murmur2;

public class HashCode {
	private static final long SEED = 100003l;

	public static long hash64(String key) {
		return Murmur2.hash64(key.getBytes(), key.length(), SEED);
	}

	public static long hash32(String key) {
		return Murmur2.hash(key.getBytes(), key.length(), SEED);
	}
}
